import request from '@/utils/request'

// 分页查询
export function pageBrandCategory(qurey) {
  return request({
    url: '/user/enterpriseBrandCategory/paging',
    method: 'get',
    params: qurey
  })
}
/**
 * 保存
 * @param data
 */
export function saveBrandCategory(data) {
  return request({
    url: '/user/enterpriseBrandCategory/save',
    method: 'post',
    data: data
  })
}
/**
 * 删除品牌分类
 * @param query
 */
export function delBrandCategory(brandCategoryId) {
  return request({
    url: '/user/enterpriseBrandCategory/delete',
    method: 'get',
    params: { brandCategoryId: brandCategoryId }
  })
}
/**
 * 删除品牌
 * @param query
 */
export function delBrand(brandId) {
  return request({
    url: '/user/enterpriseBrand/delete',
    method: 'get',
    params: { brandId: brandId }
  })
}
/**
 * 获取企业品牌分类集合
 * @param query
 */
export function listBrandCategory(enterpriseId) {
  return request({
    url: '/user/enterpriseBrandCategory/listBrandCategory',
    method: 'get',
    params: { enterpriseId: enterpriseId }
  })
}
/**
 * 获取企业品牌集合
 * @param query
 */
export function listBrand(enterpriseId) {
  return request({
    url: '/user/enterpriseBrand/listBrand',
    method: 'get',
    params: { enterpriseId: enterpriseId }
  })
}

// 分页查询 品牌
export function pageBrand(qurey) {
  return request({
    url: '/user/enterpriseBrand/paging',
    method: 'get',
    params: qurey
  })
}
/**
 * 保存
 * @param data
 */
export function saveBrand(data) {
  return request({
    url: '/user/enterpriseBrand/save',
    method: 'post',
    data: data
  })
}
